﻿using LPY.LeHealth.DAL;
using LPY.LeHealth.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPY.LeHealth.Service
{
    public class AppImageService
    {
        private AppImageDal appImageDal;

        public AppImageService()
        {
            appImageDal = new AppImageDal();
        }

        /// <summary>
        /// 获取前三张图片地址
        /// </summary>
        /// <returns></returns>
        public List<AppImage> GetTop3()
        {
            return appImageDal.Get(3);
        }

        /// <summary>
        /// 获取前五张图片地址
        /// </summary>
        /// <returns></returns>
        public List<AppImage> GetTop5()
        {
            return appImageDal.Get(5);
        }
    }
}
